home *** CD-ROM | disk | FTP | other *** search
- head 1.1;
- branch ;
- access ;
- symbols ;
- locks ; strict;
- comment @ * @;
-
-
- 1.1
- date 90.10.31.22.35.06; author jhh; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @/*
- * Host_Stat.c --
- *
- * Does a "stat" on the host database and returns the stat structure.
- *
- * Copyright 1990 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: /sprite/lib/forms/RCS/proto.c,v 1.3 90/01/12 12:03:36 douglis Exp $ SPRITE (Berkeley)";
- #endif /* not lint */
-
- #include <stdio.h>
- #include <host.h>
- #include <hostInt.h>
- #include <sys/types.h>
- #include <sys/stat.h>
-
-
- /*
- *----------------------------------------------------------------------
- *
- * Host_Stat --
- *
- * Stat the host database.
- *
- * Results:
- * 0 if successful, -1 otherwise and errno is set.
- *
- * Side effects:
- * None.
- *
- *----------------------------------------------------------------------
- */
-
- int
- Host_Stat(statPtr)
- struct stat *statPtr; /* Place to store stat results. */
- {
- return stat(hostFileName, statPtr);
- }
-
- @
-